﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FoundationLib.Ifc.Data
{
	/// <summary>
	/// Provides session functionality.
	/// </summary>
	public interface ISession : ITransactionProvider, IDisposable
	{
		/// <summary>
		/// Closes the current session.
		/// </summary>
		void Close();

		/// <summary>
		/// Flushes the contents of the current session by synchronising changes with the data store.
		/// </summary>
		void SubmitChanges();
		
	}
}
